from  pymilvus import MilvusClient,DataType

#连接Milvus服务器
client = MilvusClient(
    uri="http://49.234.21.142:19530"
)


#查看索引信息
res = client.list_indexes(
    collection_name="customized_setup"
)
print(res)

#列出明细信息
res1 = client.describe_index(
    collection_name="customized_setup",
    index_name="vector_index"
)
print(res1)

#删除索引(已加载的必须先删除 )
client.drop_index(
    collection_name="customized_setup",
    index_name="vector_index"
)